package com.core.service.impl;

import java.io.Serializable;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.core.dao.GenericDao;
import com.core.dao.KelulusanDao;
import com.core.entity.Kelulusan;
import com.core.entity.Sekolah;
import com.core.service.KelulusanService;

@Service
public class KelulusanServiceImpl extends GenericServiceImpl<Kelulusan, Long>
		implements KelulusanService, Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -2635614118030826331L;
	@Autowired
	private KelulusanDao kelulusanDao;

	@Override
	public GenericDao<Kelulusan, Long> getDao() {
		return kelulusanDao;
	}

	@Override
	@Transactional(readOnly=true)
	public List<Kelulusan> kelulusanSekolah(Sekolah sekolah) {
		return findAllByProperty("sekolah", sekolah);
	}

}
